﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VietTrips.Domain.Models
{
    [Table("webpages_Roles")]
    public sealed class Role
    {
        public Role()
        {
            this.UserProfiles = new HashSet<UserProfile>();    
        }

        [Key]
        public int RoleId { get; set; }

        [Required]
        [StringLength(256)]
        public string RoleName { get; set; }

        public ICollection<UserProfile> UserProfiles { get; set; } 
    }
}
